var MyExample = Quintus()

MyExample.load('assetName.png',function () {
    var object = new MyExample.CanvasSprite({
        asset:'assetName.png',x:0,y:0
    })
    object.update = function (dt) {

    }
    MyExample.gameLoop(function (dt) {
        this.clear()
        object.update(dt)
        object.render(this.ctx)
    })
})

var MyGame = Quintus().include('Input,Sprites,Scenes').setup()
var spriteType1 = MyGame.CanvasSprite.extend({

})
MyGame.load(['asset1.png','asset2.png','sprites.json'],function () {
    //场景
    var scene1 = new MyGame.Scene(function (stage) {
        stage.add(new MyGame.SpriteType1({}))
    })
    //舞台
    MyGame.stageScene(scene1)
})
